home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
MATHS
/
RLAB
/
RLAB125.ZIP
/
!RLaB
/
rlib
/
dot
< prev
next >
Wrap
Text File
|
1995-02-04
|
423b
|
19 lines
//---------------------------------------------------------------------------
// dot.r
// Syntax: dot ( A , B )
// Description:
// Compute the dot product of two vectors, A and B.
//---------------------------------------------------------------------------
dot = function ( A , B )
{
if (min (size (A) != 1) || min (size (B) != 1))
{
error ("dot: A and B must be vectors");
}
return (A[:]' * B[:])
};